#ifndef _CONFIGGROUP_H_
#define _CONFIGGROUP_H_

//System headers
#include <string>
#include <list>
#include <map>

//Project headers
#include <jmtools/win.h>

namespace JMTools
{
	namespace Config
	{
#ifdef WIN
		class JMTOOLS_API ConfigGroup {
#else
		class ConfigGroup {
#endif
		private:
		protected:
			std::string name;
			std::map<std::string,std::list<std::string> > data;
		public:
			//Contructors and Destructors
			ConfigGroup();
			ConfigGroup(std::string name);
			virtual ~ConfigGroup();

			//Gettters and Setters
			std::string getName();
			void setName(std::string name);
			std::map<std::string,std::list<std::string> > getData();
			std::string getValue(std::string key);
			std::list<std::string> getList(std::string key);

			//Others
			void add(std::string key, std::string value);
		};
	}
}
#endif
